home *** CD-ROM | disk | FTP | other *** search
- Path: news.salford.ac.uk!mcswkstn45
- From: MCF100@news.salford.ac.uk (Nick Ridgway)
- Newsgroups: comp.lang.c++
- Subject: Lack of exception handling in MSVC++ 1.52
- Date: Thu, 29 Feb 96 20:20:55 GMT
- Organization: University of Salford
- Message-ID: <4h51r7$7g0_001@salford.ac.uk>
- NNTP-Posting-Host: mcswkstn45.salford.ac.uk
- X-Newsreader: News Xpress Version 1.0 Beta #3
-
- After about a year of enduring OWL 2.0 we decided to do ourselves a favour and
- get Visual C++. At first it was great, MFC is far easier to use and
- everything was wonderful. Then, during debugging we noticed that memory was
- occasionally being leaked when an exception was thrown, and further
- investigation revealed that destructors were not being called when the stack
- was unwound. At first we thought this was not quite right, but then the
- compiler documentation told us this was so.
-
- So, we see 2 options:
-
- 1. TRY every single function call that may throw an exception and write
- destruct functions for all our classes, call them manually, then pass the
- exception along.
-
- 2. Throw the damn compiler in the bin where it belongs and go back to Borland.
-
- Presumably there will be quite afew others will the same problem, and bearing
- in mind that (1) kind of misses the point of exception handling in the first
- place and (2) means endless hours of porting and retesting, is there a
- practical solution?
-
- By the way, has anyone got a QuickWin project to link successfully in Debug
- mode with MFC?
-
- Many thanks, Nick.
-
- Yet another Microsoft masterpiece.
-